package com.bw.hxc.controller;


import com.bw.hxc.entity.Dic;
import com.bw.hxc.entity.Result;
import com.bw.hxc.service.IDicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 黄旭超
 * @since 2022-06-07
 */
@RestController
@RequestMapping("/dic")
public class DicController {

    @Autowired
    IDicService dicService;

    @RequestMapping("getDic")
    public List<Dic> getDic(){
        List<Dic> list = dicService.list();
        return list;
    }

}
